import 'env_config.dart';

/// 全局请求头
abstract class HeadersType {
  /// 请求头参数
  Map<String, String> get headers {
    return {};
  }
}

class GPTHeaders extends HeadersType {
  @override
  Map<String, String> get headers {
    if (HMNetworkConfig.token != null) {
      return {"Authorization": "Bearer ${HMNetworkConfig.token}"};
    }
    return {};
  }
}
